package test.letapplyrunwith的区别

fun main(args: Array<String>) {
    val list: MutableList<String> = mutableListOf("A", "B", "C")
    val change: Any
    change = list.let {
        it.add("D")
        it.add("E")
        it.size
    }
    println("list= $list")
    println("change = $change")
}